Ninja Database Lite
Using Your License Key
Licensing > Using Your License Key

NinjaDbConfig config = new NinjaDbConfig();

//Set UserName and LicenseKey
config.UserName = "My User Name";
config.LicenseKey = "My License Key";

 

//Define database storage
string databasePath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "MyApplication");
config.Storage = new FileDatabase(databasePath);

//Pass in the configuration
NinjaDb ninja = new NinjaDb(config);